package com.chaodev.base.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.HashMap;
import java.util.Map;

@Component
public class CodeCache {
    public static Map<String, String> codeMap = new HashMap<String, String>();

    @Autowired
//    private ICodeService codeService;

    @PostConstruct
    public void getInfo(){
//        List<IpCode> codeList = codeService.getIpCodeList();
//        for (IpCode code : codeList) {
//            codeMap.put(code.getIp(), code.getIpAreaCode());
//        }
    }

}

